package com.bynk.bynk_demo.service.impl;

import com.bynk.bynk_demo.common.result.Result;
import com.bynk.bynk_demo.dto.LoginDto;
import com.bynk.bynk_demo.service.LoginService;

public class LoginServiceImpl implements LoginService {
    @Override
    public Result login(LoginDto loginDto) {
        String name = loginDto.name;
        String pwd = loginDto.pwd;

        Result<String> stringResult = new Result<String>();

        if (null==name||null==pwd){
            stringResult.setCode("302");
            stringResult.setMessage("登陆失败");

            return stringResult;
        }

        if (name.equals("wwh")&&pwd.equals("123456"))
            return stringResult;

        return stringResult;
    }


}
